﻿@model IEnumerable<ArchivedPostsViewModel>

@{
	Layout = null;
}

@if (Model.Any())
{
	<ul class="unstyled">
		@foreach (var archivedPosts in Model)
		{
			<li>@Html.RouteLink(new DateTime(archivedPosts.Year, @archivedPosts.Month, 1).ToString("MMMM, yyyy", CultureInfo.InvariantCulture), "PostsByYearMonth", new
																																										{
																																											archivedPosts.Year,
																																											archivedPosts.Month
																																										}) (@archivedPosts.Count)</li>
		}
	</ul>
}
else
{
	<p>No archived posts.</p>
}